import Layout from '@/page/main/index.vue'

export const routerlist = [
  {
    path: '/',
    component: Layout,
    redirect: '/bm/home_page',
    children: [
      {
        path: '/bm/home_page',
        name: '首页',
        component: () => import('@/views/bm/home_page/index.vue'),
        meta: {
          keepAlive: true
        }
      },
      //cesium相关
      {
        path: '/bm/cesium/satellite_trajectory',
        name: '加载czml',
        component: () => import('@/views/bm/cesium/satellite_trajectory.vue'),
        meta: {
          keepAlive: true
        }
      },
      {
        path: '/bm/cesium/load_kml',
        name: '加载kml',
        component: () => import('@/views/bm/cesium/load_kml.vue'),
        meta: {
          keepAlive: true
        }
      },
      // echarts相关
      {
        path: '/bm/echarts/bar',
        name: '柱状图',
        component: () => import('@/views/bm/echarts/bar.vue'),
        meta: {
          keepAlive: false
        }
      },
      {
        path: '/bm/echarts/line',
        name: '折线图',
        component: () => import('@/views/bm/echarts/line.vue'),
        meta: {
          keepAlive: false
        }
      },
      {
        path: '/bm/echarts/map',
        name: '地图',
        component: () => import('@/views/bm/echarts/map.vue'),
        meta: {
          keepAlive: true
        }
      },
      // 表格相关
      {
        path: '/bm/table/userTable',
        name: '用户表格',
        component: () => import('@/views/bm/table/userTable.vue'),
        meta: {
          keepAlive: true
        }
      },
      // 高德地图相关
      {
        path: '/bm/aMap/map',
        name: '地图初始化',
        component: () => import('@/views/bm/aMap/map.vue'),
        meta: {
          keepAlive: true
        }
      },
      {
        path: '/bm/video',
        name: '视频',
        component: () => import('@/views/bm/video/index.vue'),
        meta: {
          keepAlive: true
        }
      },
      {
        path: '/bm/quill_editor',
        name: '富文本',
        component: () => import('@/views/bm/quill_editor/index.vue'),
        meta: {
          keepAlive: true
        }
      },
      {
        path: '/bm/webSocket',
        name: '富文本',
        component: () => import('@/views/bm/webSocket/index.vue'),
        meta: {
          keepAlive: true
        }
      }
    ]
  },
  {
    path: '/login',
    name: 'login',
    component: () => import('@/page/login/LoginMain.vue')
  },
  {
    path: '/fireworks',
    name: '烟花',
    component: () => import('@/views/bm/fireworks/index.vue')
  },
  {
    path: '/timeClock',
    name: '元旦倒计时',
    component: () => import('@/views/bm/time_clock/index.vue')
  },
  {
    path:'/chatWindow',
    name: '聊天窗口',
    component: () => import('@/views/bm/chat_window/index.vue')
  }
]

export const menuList = [
  {
    key: '/bm/home_page',
    icon: 'HomeOutlined',
    label: '首页',
    title: 'home_page'
  },
  {
    key: '/bm/cesium',
    icon: 'GlobalOutlined',
    label: 'cesium',
    title: 'cesium',
    children: [
      {
        key: '/bm/cesium/satellite_trajectory',
        label: '加载czml',
        title: 'satellite_trajectory'
      },
      {
        key: '/bm/cesium/load_kml',
        label: '加载kml',
        title: 'load_kml'
      }
    ]
  },
  {
    key: '/bm/echarts',
    label: 'echarts',
    title: 'echarts',
    icon: 'IeOutlined',
    children: [
      {
        key: '/bm/echarts/bar',
        label: '柱状图',
        title: 'bar'
      },
      {
        key: '/bm/echarts/line',
        label: '折线图',
        title: 'line'
      },
      {
        key: '/bm/echarts/map',
        label: '地图',
        title: 'map'
      }
    ]
  },
  {
    key: '/bm/table',
    label: '表格',
    title: 'table',
    icon: 'TableOutlined',
    children: [
      {
        key: '/bm/table/userTable',
        label: '用户表格',
        title: 'userTable'
      }
    ]
  },
  {
    key: '/bm/aMap',
    label: '高德地图',
    title: 'aMap',
    icon: 'HeatMapOutlined',
    children: [
      {
        key: '/bm/aMap/map',
        label: '地图初始化',
        title: 'amap'
      }
    ]
  },
  {
    key: '/bm/video',
    label: '视频',
    title: 'video',
    icon: 'VideoCameraOutlined'
  },
  {
    key: '/bm/quill_editor',
    label: '富文本',
    title: 'quill_editor',
    icon: 'EditOutlined'
  },
  {
    key: '/fireworks',
    label: '烟花',
    title: 'fireworks',
    icon: 'FireOutlined'
  },
  {
    key: '/timeClock',
    label: '元旦倒计时',
    title: 'timeClock',
    icon: 'ClockCircleOutlined'
  },
  {
    key: '/chatWindow',
    label: '聊天窗口',
    title: 'chatWindow',
    icon: 'WechatOutlined'
  }
]
